package tech.aistar.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import tech.aistar.mapper.SingerListMapper;
import tech.aistar.pojo.PictureTable;
import tech.aistar.pojo.entity.SingerList;

import java.util.List;
@Service
@Transactional
public class SingerListServiceImpl implements SingerListService{
    @Autowired
    private SingerListMapper singerListMapper;
    @Override
    public List<SingerList> getAll() {
        return singerListMapper.findAll();
    }

    @Override
    public List<SingerList> findType(String value) {
        return singerListMapper.findFingerType(value);
    }

    @Override
    public SingerList getById(Integer id) {
        return singerListMapper.getById(id);
    }

    @Override
    public String getbyid(Integer id) {
        String singername = singerListMapper.getbyid(id);
        return singername;
    }

    @Override
    public SingerList getByname(String singerName) {
        return singerListMapper.getByname(singerName);
    }


//    @Override
//    public List<SingerList> get
}
